#ifndef __INCLUDESHADERS 
#define __INCLUDESHADERS 

	#include <iostream>
	#include <fstream>
	#include <string>
	#include <GL/glew.h>
	#include <GL/openglut.h>

	class Shaders
	{
	public:
		GLuint vertexshader;
		GLuint fragmentshader;
		GLuint shaderprogram;
				
		Shaders(void);
		~Shaders(void);

		void init(const char * vertshader,const char * fragshader);
		GLint getUniformLocation(const char * name);
	private:
		std::string textFileRead (const char * filename) ;
		void programerrors (const GLint program) ;
		void shadererrors (const GLint shader) ;
		GLuint initshaders (GLenum type, const char * filename) ;
		GLuint initprogram (GLuint vertexshader, GLuint fragmentshader) ;

	};

#endif 
